Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle all whitespaces in column names #17

Merged
merged 7 commits into from
Jan 17, 2024

Conversation

srpwnd
Copy link
Contributor

@srpwnd srpwnd commented Jan 17, 2024

I noticed that the tap only simply replaces spaces with underscores but with Google Sheets, there is always a possibility the column names will contain different types of white spaces as well (in my case we have bunch of newlines and I cannot change the source sheet).

I've extended the functionality to cover these cases and produce cleaner and easily machine readable column names (imagine querying a column with newline in name in SQL 🤯 ).

I've also adjusted the test case to cover more cases of whitespaces and showcase the functionality of this PR.

@ReubenFrankel
Copy link
Contributor

Looks good - just needs a lint fix. 🙂

@ReubenFrankel ReubenFrankel added the bug Something isn't working label Jan 17, 2024
@srpwnd
Copy link
Contributor Author

srpwnd commented Jan 17, 2024

@ReubenFrankel Thank you, fixed it :)

@ReubenFrankel ReubenFrankel merged commit 1bf8980 into Matatika:master Jan 17, 2024
4 checks passed
@ReubenFrankel
Copy link
Contributor

Thanks @srpwnd! 👍

@srpwnd srpwnd deleted the fix/column-whitespace branch January 17, 2024 23:32
@srpwnd srpwnd restored the fix/column-whitespace branch January 19, 2024 17:55
@srpwnd srpwnd deleted the fix/column-whitespace branch January 19, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants